home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / math / BEZIER0 < prev    next >
Text File  |  1993-09-28  |  981b  |  36 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // Bezier patch example
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9.  
  10. bicubic_patch {
  11.    type 1 flatness 0.1 u_steps 5 v_steps 5
  12.    < 0.0, 0.0, 2.0>, < 1.0, 0.0, 0.0>, < 2.0, 0.0, 0.0>, < 3.0, 0.0, -2.0>,
  13.    < 0.0, 1.0, 0.0>, < 1.0, 1.0, 0.0>, < 2.0, 1.0, 0.0>, < 3.0, 1.0,  0.0>,
  14.    < 0.0, 2.0, 0.0>, < 1.0, 2.0, 0.0>, < 2.0, 2.0, 0.0>, < 3.0, 2.0,  0.0>,
  15.    < 0.0, 3.0, 2.0>, < 1.0, 3.0  0.0>, < 2.0, 3.0, 0.0>, < 3.0, 3.0, -2.0>
  16.    texture {
  17.       pigment { checker color red 1.0 color blue 1.0 rotate 90*x }
  18.       finish { phong 1 }
  19.    }
  20.  
  21.    translate <-1.5, -1.5, 0>
  22.    scale 2
  23.    rotate <30, -70, 0>
  24. }
  25.  
  26. // The viewer is eight units back along the z-axis. 
  27. camera {
  28.    location  <0.0,  0.0, -15.0>
  29.    right     <4/3,  0.0,  0.0>
  30.    up        <0.0,  1.0,  0.0>
  31.    direction <0.0,  0.0,  1.0>
  32. }
  33.  
  34. // Light source 
  35. light_source { <100, 100, 0> colour White }
  36.